//文章
import request from '../utils/request';

const baseUrl = 'http://localhost:3004';
const url = {
    miniOpen: `${baseUrl}/open`,
    miniLogin: `${baseUrl}/login`,
    miniPreview: `${baseUrl}/preview`,
    miniUpload: `${baseUrl}/upload`
};
const miniOpen = projectPath => {
    return request.get(url.miniOpen, {
        projectPath
    });
};
const miniPreview = projectPath => {
    return request.get(url.miniPreview, {
        projectPath
    });
};
const miniLogin = () => {
    return request.get(url.miniLogin);
};
export { miniOpen, miniLogin, miniPreview };
